package com.cares.sh.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author yaoli
 */
@RestController
@Api(value = "HelloController",description = "hello api")
public class HelloController {

    @ApiOperation(value = "index",notes = "首页",httpMethod = "GET",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    @RequestMapping("/")
    public String home(){
        return "Hello World!";
    }
}
